<template>
  <div :class="topobj.is_bg?'pageTitle':'pageTitle_nobg'">
    <div class="backBtn iconfont icon-fanhuijiantou" @click="backfn"></div>
    <div class="pageName">{{topobj.centerVal}}</div>
    <div @click="rightFn">{{topobj.rightVal}}</div>
  </div>
</template>

<script>
    export default {
        components: {},
        data() {
            return {}
        },
        props: {
          topobj:{},
          url:String,
        },
        methods: {
          rightFn(){
            this.$emit('rightClick')
          },
          backfn(){
            this.$emit('backClick')
            this.$router.back()
          }
        },
        mounted() {
        },
        created() {
        },
    }
</script>

<style scoped lang="less">
  .pageTitle,.pageTitle_nobg{
    padding: 0.75rem 4%;
    box-sizing: border-box;
    width: 100%;
    background-color: #fff;
    display: flex;
    font-size: 0.7rem;
    justify-content: space-between;
  }
  .pageTitle_nobg{
    background: none;
  }
</style>
